package net.huashitong.ssydt.exam.entity.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hemj
 * @version 2017/8/25
 */
public class ExamQuestionOption implements Serializable {

	private Long id;

	private Long questionId;//选择题Id

	@NotBlank(message = "答案不能为空")
	private String answer;//答案

	@NotNull(message = "顺序不能为空")
	private Integer sequence;//顺序

	@NotNull(message = "是否正确不能为空")
	private Byte isTrue;//是否正确

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public Byte getIsTrue() {
		return isTrue;
	}

	public void setIsTrue(Byte isTrue) {
		this.isTrue = isTrue;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("ExamQuestionOption{");
		sb.append("id=").append(id);
		sb.append(", questionId=").append(questionId);
		sb.append(", answer='").append(answer).append('\'');
		sb.append(", sequence=").append(sequence);
		sb.append(", isTrue=").append(isTrue);
		sb.append('}');
		return sb.toString();
	}
}